package ooday02;

public class ExdentsTest {
    public static void main(String[] args) {
        // 创建dog对象
        Dog dog1=new Dog("小黑",3,"黑");
        dog1.eat();
        dog1.drink();
        dog1.lookHome();
        System.out.println("-------------------------------");
        //创建chick对象
        Chick chick1=new Chick("小黄",1,"黄");
        chick1.eat();
        chick1.drink();
        chick1.layEggs();
        System.out.println("-------------------------------");
        //创建fish对象
        Fish fish1=new Fish("小蓝",1,"蓝");
        fish1.eat();
        fish1.drink();
    }
}
